/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package module;

import com.google.inject.servlet.ServletModule;
import servlet.GetAllScriptsServlet;
import servlet.GetBuildNameServlet;
import servlet.GetCmdResultsServlet;
import servlet.GetNotificationServlet;
import servlet.GetQueuedTSServlet;
import servlet.GetRunningTSServlet;
import servlet.ParseCommandServlet;
import servlet.RecentTestResultServlet;
import servlet.RemoveNotificationServlet;
import servlet.SetBuildNameServlet;
import servlet.TSRunnerStateServlet;
import servlet.TSRunnerSwitchServlet;
import servlet.TestResultDetailServlet;
import servlet.VMStateServlet;

/**
 *
 * @author think
 */
public class MyServletModule extends ServletModule{
    @Override
	public void configureServlets() {
        serve("/getBuildName").with(GetBuildNameServlet.class);
        serve("/GetRunnerStateServlet").with(TSRunnerStateServlet.class);
        serve("/VMStateServlet").with(VMStateServlet.class);
        serve("/getNotification").with(GetNotificationServlet.class);
        serve("/ParseCommand").with(ParseCommandServlet.class);
        serve("/getRunningTS").with(GetRunningTSServlet.class);
        serve("/getQueuedJobs").with(GetQueuedTSServlet.class);
        serve("/recentTestResult").with(RecentTestResultServlet.class);
        serve("/getCmdResults").with(GetCmdResultsServlet.class);
        serve("/switchTSRunner").with(TSRunnerSwitchServlet.class);
        serve("/setBuildName").with(SetBuildNameServlet.class);
        serve("/testResultDetail").with(TestResultDetailServlet.class);
        serve("/getAllScripts").with(GetAllScriptsServlet.class);
        serve("/removeNotification").with(RemoveNotificationServlet.class);
	}
}
